<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<import type="js" file="js.jquery" />
<import type="js" file="js.common" />
<import type="css" file="css.global" />
<import type="css" file="css.form" />
<import file="js.My97DatePicker.WdatePicker" />
</head>
<body>
<div class="search">
	<b>管理流程步骤--- ({$type_name})</b>&nbsp;<input type="button"  value="新建流程步骤" class="button" onclick="add()" title="新建流程步骤">
</div>
<div class="list">
<table class="stripe" cellspacing="0">
    <thead>
        <tr>
            <th width="6%">序号</th>
            <th width="20%">名称</th>
            <th width="14%">下一步</th>
            <th width="50%">各项属性</th>
            <th width="20%">操作</th>
        </tr>
    </thead>
 
    <tbody>
   	  <volist name="data_list" id="vo" empty="$empty">
        <tr>
        	<td align="center">{$vo.proc_no}</td>
			<td>{$vo.proc_name}</td>
			<td><if condition="$vo.proc_to eq 0">[流程结束]<else />{$vo.proc_to}</if></td>
			<td>
				<a href="javascript:void(0);" onclick="edit({$vo.proc_id})">基本属性</a>&nbsp;|
				<a href="javascript:void(0);" onclick="item({$vo.proc_id})">可写字段</a>&nbsp;|
				<a href="javascript:void(0);" onclick="condition({$vo.proc_id})">条件设置</a>&nbsp;|
				<a href="javascript:void(0);" onclick="user({$vo.proc_id})">经办人员</a>
				<!--<a href="javascript:void(0);" onclick="dept({$vo.proc_id})">经办部门</a>&nbsp;|
				<a href="javascript:void(0);" onclick="priv({$vo.proc_id})">经办角色</a>-->
				</td>
			 <td><a href="javascript:void(0);" onclick="delete_item({$type_id},{$vo.proc_id})">删除</a></td>
        </tr>
      </volist>
    </tbody>
</table>
</div>
</body>
<script language="javascript">
$(document).ready(function(){  
	$(".stripe tr").mouseover(function(){    
	  $(this).addClass("over");}).mouseout(function(){   
			$(this).removeClass("over");}) 
  	$(".stripe tr:even").addClass("alt");
}); 
function delete_item(type_id,proc_id)
{
	msg='确认要删除该流程步骤么？';
	if(confirm(msg))
	{
		$.get("__APP__/WorkFlowSys/flow_process_delete?type_id="+type_id+"&proc_id="+proc_id, function(result){
			location.reload();
		});
	}
}
function add(){
	window.location='__APP__/WorkFlowSys/flow_process_add?type_id='+{$type_id};
}

function edit(proc_id){
	window.location='__APP__/WorkFlowSys/flow_process_edit?type_id='+{$type_id}+'&proc_id='+proc_id;
}

function item(proc_id){
	window.location='__APP__/WorkFlowSys/flow_process_item?type_id='+{$type_id}+'&proc_id='+proc_id;
}

function condition(proc_id){
	window.location='__APP__/WorkFlowSys/flow_process_condition?type_id='+{$type_id}+'&proc_id='+proc_id;
}

function user(proc_id){
	window.location='__APP__/WorkFlowSys/flow_process_user?type_id='+{$type_id}+'&proc_id='+proc_id;
}

</script>
</html>